#pragma once
#include "State.h"
#include "Forage.h"
#include "myRand.h"
#define kMaxAnts 200

class CState;

class CAnt
{
	CState *m_pCurState;

public:
	int type;
	int row;
	int col;
	bool isDead;

	static int antNum;
	CAnt(void):m_pCurState(CForage::instance()),isDead(false) {
		type = rnd(0,1);
		row = rnd(5,8);
		col = rnd(5,36);
	}
	~CAnt(void){}
	void New(int theType,int thrRow, int theCol);
	void changeState(CState *pNewState);
	void update();
};
